package com.jswlw.service.base.impl;

import com.jswlw.dao.base.SysConfigMapper;
import com.jswlw.entity.base.SysConfig;
import com.jswlw.service.base.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysConfigServiceImpl implements SysConfigService {

    @Autowired
    SysConfigMapper sysConfigMapper;

    @Override
    public List<SysConfig> findAll(Map condition) {
        return null;
    }

    @Override
    public SysConfig findOne(Integer id) {
        return sysConfigMapper.selectByPrimaryKey(id);
    }

    @Override
    public int insert(SysConfig sysConfig) {
        return sysConfigMapper.insertSelective(sysConfig);
    }

    @Override
    public int update(SysConfig sysConfig) {
        return sysConfigMapper.updateByPrimaryKeySelective(sysConfig);
    }

    @Override
    public int delete(Integer id) {
        return sysConfigMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int findCount(Map map) {
        return 0;
    }

    @Override
    public List<SysConfig> searchPage(Map map) {
        return null;
    }
}
